import { GET_USERS } from '../actionType'
import { getUsers } from '../../api/user'

export default {
  async [GET_USERS]({ commit }, page) {
    let ret = await getUsers(page)
    commit(GET_USERS, ret.data)
  }
}